package com.example.minaim;

import java.security.PrivilegedExceptionAction;

import javax.security.auth.PrivateCredentialPermission;

import android.R.integer;
import android.content.Context;
import android.graphics.Canvas;
import android.os.Handler.Callback;
import android.os.Message;
import android.view.SurfaceHolder;
import android.view.SurfaceView;

public class myAction extends SurfaceView implements Runnable, android.view.SurfaceHolder.Callback {

	private SurfaceHolder holder;
	private int actionNumber;
	private int actionStartFlag;
	private int actionLoopNumber;
	private int actionLoopFlag;
	private BitmapManager bmpManager;
	
	public myAction(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
		holder = this.getHolder();
		holder.addCallback(this);
		
	}

	@Override
	public void draw(Canvas canvas) {
		// TODO Auto-generated method stub
		super.draw(canvas);
	}

	@Override
	public void run() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void surfaceCreated(SurfaceHolder arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void surfaceDestroyed(SurfaceHolder arg0) {
		// TODO Auto-generated method stub
		
	}

	public void startActionNumber(int actionNumber) {
		this.actionNumber = actionNumber;
		this.actionStartFlag = 1;
	}

	public void startActionLoop()
	{
		this.actionLoopFlag = 1;
	}
	
	public void stopActionLoop()
	{
		this.actionLoopFlag = 0;
	}

}
